package com.csvc.business.cmdb.service.impl;

import com.csvc.business.cmdb.service.IOracleInfoService;
import com.csvc.repository.cmdb.domain.OracleInfo;
import com.csvc.repository.cmdb.mapper.OracleInfoMapper;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
* <p>
    *  服务实现类
    * </p>
*
* @author vincentzou
* @since 2020-12-29
*/
@Service
    public class OracleInfoServiceImpl extends ServiceImpl<OracleInfoMapper, OracleInfo> implements IOracleInfoService {
    @Override
    public boolean create(OracleInfo oracleInfo) {
    return super.save(oracleInfo);
    }

    @Override
    public boolean remove(Long id) {
    return super.removeById(id);
    }

    @Override
    public boolean update(OracleInfo oracleInfo) {
    return super.updateById(oracleInfo);
    }

    @Override
    public OracleInfo get(Long id) {
    return super.getById(id);
    }

    @Override
    public IPage<OracleInfo> page(int current, int size, OracleInfo oracleInfo) {
    Page<OracleInfo> page = new Page<>(current, size);
    LambdaQueryWrapper<OracleInfo> wrapper = new LambdaQueryWrapper<>();

    // TODO 查询
    // TODO 排序

    return super.page(page, wrapper);
    }
    }
